package com.bookmarket.service.impl;

import com.bookmarket.dao.LAQAddBookDao;
import com.bookmarket.entity.Book;
import com.bookmarket.entity.Stype;
import com.bookmarket.service.AddBookService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("/AddBookService")
public class AddBookServiceImpl implements AddBookService {

    @Resource
    private LAQAddBookDao laqAddBookDao;
    /*李奥琪*/
    @Override
    public void addBook(Book book) {
        laqAddBookDao.addBook(book);
    }

    @Override
    public List<Stype> selectAll (){
        return laqAddBookDao.selectAll();
    }
}
